package com.itheima.Day5;

import javax.xml.crypto.Data;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.SimpleFormatter;

public class java {
    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
        SimpleDateFormat sdf = new SimpleDateFormat();
        Date date = new Date();
        String format = sdf.format(date);
        System.out.println(format);
        SimpleDateFormat sdf2 = new SimpleDateFormat("y.MM.dd a hh:ss SSS 时区（z）");
        String format1 = sdf2.format(date);
        System.out.println(format1);
    }
}
